﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Studio77.PopBall.Core
{
    /// <summary>
    /// 颜色选择器
    /// </summary>
    internal class ItemBrushSelector
    {
        private static Brush BRUSH_1 = new SolidColorBrush(Color.FromArgb(255, 234, 0, 0));
        private static Brush BRUSH_2 = new SolidColorBrush(Color.FromArgb(255, 0, 6, 255));
        private static Brush BRUSH_3 = new SolidColorBrush(Color.FromArgb(255, 0, 207, 0));
        private static Brush BRUSH_4 = new SolidColorBrush(Color.FromArgb(255, 255, 216, 0));
        private static Brush BRUSH_5 = new SolidColorBrush(Color.FromArgb(255, 130, 130, 130));

        internal static Brush GetBrush(int type)
        {
            Brush result = null;
            switch (type)
            {
                case 1:
                    result = BRUSH_1;
                    break;
                case 2:
                    result = BRUSH_2;
                    break;
                case 3:
                    result = BRUSH_3;
                    break;
                case 4:
                    result = BRUSH_4;
                    break;
                case 5:
                    result = BRUSH_5;
                    break;
                default:
                    result = BRUSH_1;
                    break;
            }

            return result;
        }
    }
}
